home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / FAQSYS18.ZIP / FAQS.DAT / SIRD_FAQ.TXT / text0000.txt < prev   
Encoding:
Text File  |  1996-01-04  |  29.4 KB  |  748 lines

  1. The following is a smattering of info I've collected about SIRDS.  It is not 
  2. too well organized, nor complete, but it answers a lot of FAQs out there.  
  3. Please submit any updates/changes to me at thale@novell.com.
  4.  
  5. The following sections are covered herein:
  6.  
  7.    SIRDS terminology
  8.    SIRDS FTP Sites
  9.    Sample TEXT Stereograms
  10.    Commercial SIRDS Software    <-- Need more info
  11.    HOW STEREOGRAMS WORK         <-- By popular demand!
  12.    Stereogram Algorithm         <-- Also new (and rough)
  13.    SIRDS Publications
  14.    C Code to Generate SIRTS
  15.    Hope for the Hopeless
  16.    Commercial SIRDS Posters
  17.  
  18.  
  19.  
  20. -----------------------------------------------------------------------
  21. ----- SIRDS TERMINOLOGY -----------------------------------------------
  22. -----------------------------------------------------------------------
  23.  
  24. SIRDS       Single Image Random Dot Stereogram
  25. SIRD        Single Image Random Dot (not much to view in a dot; used by 
  26.             newbies)
  27. SIRTS       Single Image Random TEXT Stereogram, also called ascii 
  28.             stereograms
  29. Stereogram  general, simplified term for SIRDS and SIRTS and even
  30.             stereo-pairs (occasionally)
  31. Autostereogram, RDS, Auto RDS
  32.             equivalent to a SIRDS
  33. RLS         Random Line stereograms, instructional in learning stereogram
  34.             concepts (see Slinker and Burton publication)
  35.  
  36. Wall-eyed viewing   Viewing stereograms by focusing past the actual image
  37. Cross-eyed viewing  Viewing stereograms by focusing in front of the image
  38. Focus to infinity   Forcing your eyes' lines of sight into parallel, NOT
  39.                     necessary for wall-eyeing SIRDS!
  40.  
  41.  
  42. -----------------------------------------------------------------------
  43. ----- SIRDS FTP SITES -------------------------------------------------
  44. -----------------------------------------------------------------------
  45.  
  46. Submissions from E.Thompson@newcastle.ac.uk, kbaum@novell.com, ...:
  47.  
  48. ftp.uwp.edu (131.210.1.4)
  49.   /pub/msdos/picture.viewers/rdsdraw.zip
  50.     EXCELLENT SIRDS painting/generating program.  CHECK IT OUT!
  51. oak.oakland.edu (these are also on wuarchive, but oak is faster)
  52.   /pub/msdos/graphics/mindim20.zip
  53.     Several SIRDS (~32) in an RLE format with versatile viewer.  GET IT!
  54.   /pub/msdos/graphics/sirdvu11.zip
  55.     Nice PCX to SIRDS (color to random dots) converter.
  56.   /pub/msdos/graphics/perspect.zip
  57.     Simple SIRDS paint/view program
  58. wuarchive.wustl.edu (128.252.135.4) 
  59.   /pub/MSDOS_UPLOADS/demos/sirdsani.zip
  60.     Lets you load a 3d object, position it, then generates an animated rotation
  61.     within stereograms.
  62.   /pub/xpgs/xpgs.?.?
  63.     Xwindows stereogram utilities; generator, viewer, mindim rle viewer...
  64.   /pub/MSDOS_UPLOADS/graphics/dynamic.exe
  65.     Animated SIRDS (page flipping)
  66.   /graphics/graphics/mirrors/sugrfx.acs.syr.edu/3d/randot/3drandot.zoo
  67.     Converts color GIF to SIRDS on screen
  68. sunsite.unc.edu
  69.   /pub/academic/computer-science/virtual-reality/3d/
  70.     alt.3d.Z        Older archive of the alt.3d newgroups  
  71.     randot          Various programs to make random dot stereograms 
  72.     red_blue        Graphic files for viewing with Red/Blue glasses
  73.     stereograms     Graphic and Text files of steroegrams 
  74. ftp.cs.waikato.ac.nz
  75.   /pub/papers/???.tar.Z
  76.     Research paper describing sirds, with several improvements
  77. (archive??)
  78.   shimmer.exe
  79.     Flips through several SIRDS of the same image to create a shimmering effect
  80.     (related to above research paper)
  81. gwaihir.dd.chalmers.se
  82.   pub/een/SIS/*.tif
  83.     Sharp SIRDS in TIFF graphic format.
  84.  
  85.  
  86. -----------------------------------------------------------------------
  87. ----- SAMPLE TEXT Stereograms (Not random) ----------------------------
  88. -----------------------------------------------------------------------
  89.  
  90. From: dthomas@bbx.basis.com (Dave Thomas)
  91.                                                                         
  92.                             O   O
  93. n   n   n   n   n   n   n   n   n   n   n   n   n   n   n  n
  94. f    f    f    f    f    f    f    f    f    f    f    f   f
  95. e   e   e   e   e   e   e   e   e   e   e   e   e   e   e  e
  96. a    a    a    a    a    a    a    a    a    a    a    a   a
  97. a   a   a   a   a   a   a   a   a   a   a   a   a   a   a  a
  98. r    r    r    r    r    r    r    r    r    r    r    r   r
  99. r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r
  100.         
  101.  
  102.  
  103. g  g  g  g  g  g  g  g  g  g  g  g  g  g  g  g  g  g  g  g  g  g  g  g  g
  104. r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r
  105.  e    e    e    e    e    e    e    e    e    e    e    e    e    e    e
  106. a     a     a     a     a     a     a     a     a     a     a     a     a
  107.  t      t      t      t      t      t      t      t      t      t      t
  108. <<<<>>>><<<<>>>><<<<>>>><<<<>>>><<<<>>>><<<<>>>><<<<>>>><<<<>>>><<<<>>>>
  109.  d      d      d      d      d      d      d      d      d      d      d
  110. e     e     e     e     e     e     e     e     e     e     e     e     e
  111.  p    p    p    p    p    p    p    p    p    p    p    p    p    p    p
  112. t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t
  113. h  h  h  h  h  h  h  h  h  h  h  h  h  h  h  h  h  h  h  h  h  h  h  h  h
  114.  
  115.  
  116. One more from ... well ... YOU figure it out!
  117.  
  118. _-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~
  119. !   Adam      Adam      Adam      Adam      Adam      Adam   ! "Lawn       !
  120. !Spragg   Spragg   Spragg   Spragg   Spragg   Spragg   Spragg!   service!" !
  121. !   Adam      Adam      Adam      Adam      Adam      Adam   !       -Stup !
  122. !Spragg   Spragg   Spragg   Spragg   Spragg   Spragg   Spragg!             !
  123. !   Adam      Adam      Adam      Adam      Adam      Adam   !  atspragg@  !
  124. !Spragg   Spragg   Spragg   Spragg   Spragg   Spragg   Spragg! ucdavis.edu !
  125. !   Adam      Adam      Adam      Adam      Adam      Adam   !   GO AGS!   !
  126. _-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~
  127.  
  128.  
  129.  
  130. -----------------------------------------------------------------------
  131. ----- COMMERCIAL SIRDS SOFTWARE ---------------------------------------
  132. -----------------------------------------------------------------------
  133.  
  134. STW_DEMO.EXE: the full package will allow RDS creation
  135.    Approx 40$
  136.    N.E.Thing Enterprises
  137.    P.O. Box 1827
  138.    Cambridge, MA 02139
  139.  
  140. Stareo-3D ??
  141.  
  142. I know there are more!  SEND MORE INFO!
  143.  
  144.  
  145. -----------------------------------------------------------------------
  146. ----- How Stereograms Work --------------------------------------------
  147. -----------------------------------------------------------------------
  148.  
  149. Let's start with a simple repeating pattern.  First we'll examine viewing
  150. stereograms wall-eyed (focusing beyond the picture).
  151.  
  152.               Adam
  153. Adam                       Adam          <-- PERCEIVED IMAGE (3D)
  154.   \ 
  155.    \ \
  156.     \   \
  157.     Adam  Adam   Adam  Adam              <-- ACTUAL PICTURE (Flat, 2D)
  158.      \       \
  159.       \         \                        <-- LINES OF SIGHT FROM EACH EYE
  160.        \           \
  161.        (*)           (*)                 <-- EYES
  162.  
  163. As shown in the above graphic, the lines of sight go through different
  164. (but identical) words.  The eyes must be directed to just the right level
  165. behind the picture to get the two "Adams" to line up.  When they do line 
  166. up, a single "Adam" appears at the level shown behind the picture.  
  167.  
  168. This is why it is easiest for some people to look at stereograms behind
  169. glass.  You simply look at your reflection, which appears to be behind
  170. the glass at about the same level as the 3d stereogram image.  More on
  171. this later.
  172.  
  173. So, why is the second "Adam" in the above image "deeper" than the other
  174. two?  Since the next two "Adams" that line up are FARTHER apart than the
  175. first two, your eyes must diverge a little more to get them to line up.  
  176. away.
  177. This causes the next "Adam" to appear deeper in the image.
  178.  
  179.               Adam
  180. Adam           |           Adam          <-- PERCEIVED IMAGE (3D)
  181.               / \
  182.              /   \
  183.             /     \
  184.     Adam  Adam   Adam  Adam              <-- ACTUAL PICTURE (Flat, 2D)
  185.            /       \
  186.           /         \                    <-- LINES OF SIGHT FROM EACH EYE
  187.          /           \
  188.        (*)           (*)                 <-- EYES
  189.  
  190. The above graphic was crammed into 10 lines of text.  If we moved the 
  191. eyes back (to a more realistic distance), the whole 3d image would 
  192. appear deeper, and not so spread out.
  193.  
  194. Cross-eyed viewing follows the same principles, but brings the focal point
  195. up front of the picture and inverts the image.  I'll use the same eyes and
  196. picture, but move the eyes back for room to illustrate.
  197.  
  198.     Adam  Adam   Adam  Adam              <-- ACTUAL PICTURE (Flat, 2D)
  199.        \   |
  200.          \|
  201.          Adam                            <-- PERCEIVED IMAGE (3D)
  202.          |   \
  203.          |     \
  204.         |         \                      <-- LINES OF SIGHT FROM EACH EYE
  205.         |           \
  206.        (*)           (*)                 <-- EYES
  207.  
  208. Now for the inverse part.  Since the next two "Adams" are farther apart,
  209. you must cross your eyes MORE (converge instead of diverge your eyes) to
  210. get the "Adams" to overlap.  This causes the next "Adam" in the image to
  211. appear closer than the first one.
  212.  
  213.     Adam  Adam    Adam  Adam             <-- ACTUAL PICTURE (Flat, 2D)
  214.            \      /
  215.             \    /
  216.          Adam\ / Adam                    <-- PERCEIVED IMAGE (3D)
  217.              Adam
  218.              /  \
  219.            /      \                      <-- LINES OF SIGHT FROM EACH EYE
  220.          /          \
  221.        (*)           (*)                 <-- EYES
  222.  
  223. Whew.  Ascii graphics are a bit too tight to be very technical.  By the
  224. way, each letter (or pixel) in the 3D image comes from two letters in
  225. the picture.  Stereograms have blurry edges (right and left edges) 
  226. because the line of sight from the one eye passes through the picture, 
  227. but the line of sight from the other eye is off the picture.  Examine
  228. the wall-eyed example below.
  229.  
  230.                      Adam
  231.        Adam                       Adam     <-- PERCEIVED IMAGE (3D)
  232. \               
  233.   \ \
  234.     \   \
  235.        \   Adam  Adam   Adam  Adam         <-- ACTUAL PICTURE (Flat, 2D)
  236.          \     \
  237.             \       \                      <-- LINES OF SIGHT
  238.               \           \          
  239.               (*)           (*)            <-- EYES
  240.  
  241. Here, the line of sight for the right eye goes through first "Adam" 
  242. in the picture, and the line of sight for the left eye is off the
  243. picture.  (Everything to the left of the first "Adam" in the IMAGE 
  244. is blurry.)
  245.  
  246.  
  247. HOW TO GENERATE STEREOGRAMS
  248.  
  249. Random stereograms work the same way; they simple repeat random text or
  250. pixels, instead of words like the "Adam" used above.  Below, the pattern, 
  251. "ASDFGHJK", is repeated four times in each line.  (I duplicated it for
  252. easier viewing.)
  253.  
  254.          ASDFGHJKASDFGHJKASDFGHJKASDFGHJK
  255.          ASDFGHJKASDFGHJKASDFGHJKASDFGHJK
  256.          ASDFGHJKASDFGHJKASDFGHJKASDFGHJK
  257.  
  258. As you might guess, the image consists of THREE repetitions of the 
  259. pattern, set back behind the picture (wall-eyed).  To add some varying
  260. depth to the image, we can simple add a space in the middle; or better,
  261. we'll add a different letter, the letter Q.  I've also dropped the K
  262. off the end to keep it suitable for framing. :-)
  263.  
  264.          ASDFGHJKASDFGHJKASDFGHJKASDFGHJK
  265.          ASDFGHJKASDFGHJKASQDFGHJKASDFGHJ
  266.          ASDFGHJKASDFGHJKASDFGHJKASDFGHJK
  267.  
  268. Adding the Q has the same effect as adding the space between "Adams"
  269. in the previous example.  Here it is again for comparison.
  270.  
  271.          Adam Adam Adam Adam Adam Adam
  272.          Adam Adam Adam  Adam Adam Ada
  273.          Adam Adam Adam Adam Adam Adam
  274.  
  275. These two stereograms demonstrate going down a level (deeper, for wall-
  276. eyed viewers) by adding a new letter where you want to go down.  The
  277. image returns back to the original level because the added letter was
  278. not repeated down the line; it was essentially deleted again.  Hence,
  279. deleting a letter causes the image to come forward one level.  Lets 
  280. look at this by deleting a letter before adding any.
  281.  
  282.          ASDFGHJKASDFGHJKASDFGHJKASDFGHJK
  283.          ASDFGHJKASDFGJKASDFGHJKASDFGHJKA
  284.          ASDFGHJKASDFGHJKASDFGHJKASDFGHJK
  285.  
  286. I deleted an H from the middle row, and added an A on the end to make
  287. it flush again.  This causes the image to come up a level where the H
  288. was deleted, then go back down where the H returns to the pattern.
  289.  
  290. To fully control the ups and downs of stereogram generation, you simply
  291. keep track of what's repeating and add and delete letters when needed.
  292. For example, start with the pattern ASDFGHJK.  If the input for the 3D
  293. stereogram image is 00000000000011111222221111111110000, where the 
  294. numbers represent the levels of the 3D image, you simply delete a letter
  295. from the pattern when you go up a level (0 to 1, or 1 to 2), and add a
  296. letter to the pattern when you go down a level (2 to 1, or 1 to 0).
  297.  
  298. If you want to go up multiple levels, e.g., from level 1 to 3, delete
  299. 2 letters from your pattern.  Adding two letters to the pattern likewise
  300. causes a two-level drop in the image.
  301.  
  302. Start each line of the image by dumping the whole pattern.  Recall that
  303. in the examples above, four "Adams" in the picture creates three "Adams" 
  304. in the image.  By dumping the pattern to start, we are simple providing 
  305. the first "Adam" to build the 3D image from.  Now, we start building the 
  306. 3D image.
  307.  
  308.         ASDFGHJK
  309.  
  310. Since the first 12 levels are at level 0, we do no adding nor deleting;
  311. just dump 12 more letters from the pattern in order.
  312.  
  313.         ASDFGHJKASDFGHJKASDF
  314.                 ^image starts here
  315.  
  316. We now have our first transition, from level 0 to 1.  Which letter do we
  317. delete?  Delete the next one in the pattern.  
  318.  
  319.         ASDFGHJK
  320.             ^the next letter in the pattern
  321.  
  322. Since G is next, we delete it.  Our new pattern is ASDFHJK, and H is the
  323. next letter to be used in the image.
  324.  
  325.         ASDFHJK
  326.             ^the next letter to use in the image
  327.  
  328. Forget about the G.  Consider it gone forever.  The input now indicates 
  329. five letters at level 1.  Since we made the transition to level one by 
  330. deleting the G, we simply copy the next 5 letters from the pattern into
  331. the image.  The next 5 letters in the pattern are HJKAS.  (You've noticed
  332. by now that we wrap around when we get to the end of the pattern.) I'll 
  333. lay the input next to our image to make it easier to see where we're at.
  334.  
  335.                 00000000000011111222221111111110000
  336.         ASDFGHJKASDFGHJKASDFHJKAS
  337.         {      }{          }{   }
  338.         initial  level 0    level
  339.         pattern             1
  340.  
  341. To jump up to level 2 from level 1, we delete the next letter in the 
  342. pattern, the letter D.  The new pattern is shown below.
  343.  
  344.         ASFHJK
  345.           ^the next letter to use
  346.  
  347. We have 5 letters at level 2, so we copy the next 5 letters from the 
  348. pattern, FHJKA, to the image.
  349.  
  350.                 00000000000011111222221111111110000
  351.         ASDFGHJKASDFGHJKASDFHJKASFHJKA
  352.         {      }{          }{   }{   }
  353.         initial  level 0    lev  level
  354.         pattern             1    2
  355.  
  356. We must now move down a level, from 2 to 1, by ADDING a letter to our
  357. pattern.  Where do we add it?  Add it as the next letter to use.  Let's
  358. add an X (randomly chosen letters work better than previously used 
  359. letters).  Since A was the last letter used, S is the next to be used.
  360.  
  361.         ASFHJK
  362.          ^add X here
  363.  
  364.         AXSFHJK
  365.          ^next letter to use
  366.  
  367. Since there are nine letters at level 1, we must copy nine letters 
  368. from the pattern to the image (XSFHJKAXS).
  369.  
  370.                 00000000000011111222221111111110000
  371.         ASDFGHJKASDFGHJKASDFHJKASFHJKAXSFHJKAXS
  372.         {      }{          }{   }{   }{       }
  373.         initial  level 0    lev  level level 1
  374.         pattern             1    2
  375.  
  376. Drop another level, from 1 to 0, by adding another letter to the pattern
  377. at the current position.
  378.  
  379.         AXSFHJK
  380.            ^add random letter (M) here
  381.  
  382.         AXSMFHJK
  383.            ^next letter to use
  384.  
  385. level 0, we copy four letters from the
  386. pattern to the image (MFHJ).
  387.  
  388.                 00000000000011111222221111111110000
  389.         ASDFGHJKASDFGHJKASDFHJKASFHJKAXSFHJKAXSMFHJ
  390.         {      }{          }{   }{   }{       }{  }
  391.         initial  level 0    lev  level level   lev
  392.         pattern             1    2     1       0
  393.  
  394. WE'RE DONE.  Kinda anti-climatic, huh?  Let's duplicate the image line
  395. to make it easier to view.
  396.  
  397.         ASDFGHJKASDFGHJKASDFHJKASFHJKAXSFHJKAXSMFHJ
  398.         ASDFGHJKASDFGHJKASDFHJKASFHJKAXSFHJKAXSMFHJ
  399.         ASDFGHJKASDFGHJKASDFHJKASFHJKAXSFHJKAXSMFHJ
  400.         ASDFGHJKASDFGHJKASDFHJKASFHJKAXSFHJKAXSMFHJ
  401.         ASDFGHJKASDFGHJKASDFHJKASFHJKAXSFHJKAXSMFHJ
  402.  
  403. For each new line in the image, start with a new random pattern, and
  404. follow the steps above.  So, how are graphics stereograms made?  The
  405. same way, using colored pixel values for input.  3drandot uses RED as
  406. the color deepest in the image, with GREEN in the middle, and BLUE as
  407. the highest color.
  408.  
  409. The pseudocode below follows this algorithm.  If you have any questions,
  410. post them in the newsgroup.  Let me know if you are interested in C code 
  411. that follows this algorithm.  (The C code here in the FAQ follows a 
  412. different algorithm, the "lookback" algorithm.)
  413.  
  414. Enjoy!!
  415. thale@novell.com
  416.  
  417.  
  418. -----------------------------------------------------------------------
  419. ----- STEREOGRAM ALGORITHM --------------------------------------------
  420. -----------------------------------------------------------------------
  421.  
  422. The following is an algorithm I developed for SIRDS generation.  It is 
  423. functionally equivalent to the look back algorithms, without looking back. 
  424. It can be used for graphic stereograms, as well as the text stereograms. 
  425. It simply stores in PATTERN the values we would look back at.  The input 
  426. file is depth data, or a z-buffer (see example input below).  The levels 
  427. available in a picture are the maximum pattern size divided by two minus 
  428. one.  Maximum pattern size should be equivalent to half the distance 
  429. between the eyes (for easy viewing), which is about 1 1/4 inches.  So, for 
  430. typical text stereograms on an 80 char display, that's about 10 characters 
  431. for the maximum pattern size and 4 or 5 levels available.  However, since 
  432. 4 or 5 levels is unreasonable, we push the max pattern size to 16 (still 
  433. less that the 20 character distance between the eyes).  This gives us about 
  434. 7 or 8 levels.
  435.  
  436. If we do allow more than 7 levels when the max pattern size is 16, the 
  437. repeating pattern (of size max pattern - current level) grows so small that 
  438. four of them in a row (e.g., of size 7) would also create two double 
  439. patterns in a row (of size 14), causing floaties (aliasing).  
  440.  
  441. I hope I'm making some sense.  I'll try to spend some time rewriting this. 
  442. In addition, I'll integrate answers to any questions that come as a result 
  443. of this mess!  In addition to the information here, we need to add a good 
  444. description of how they work (that is not covered here).
  445.  
  446.  
  447. PL : Previous Level value
  448. NL : Next Level value
  449.  
  450. INITIAL LEVEL SETTING
  451. PL = 0
  452.  
  453. OPEN INPUT FILE FOR READING
  454. WHILE NOT EOF (Y DIMENSION: FOR EACH LINE)
  455.  
  456.    GENERATE NEW PATTERN
  457.    SET PATTERN PTR TO BEGINNING OF PATTERN
  458.    OUTPUT FULL PATTERN
  459.  
  460.    WHILE NOT EOL (X DIMENSION: FOR EACH POSITION)
  461.  
  462.       NL = NEXT INPUT LEVEL VALUE
  463.       IF NL != PL (IF WE'RE CHANGING LEVELS)
  464.  
  465.          IF NL > PL (IF WE'RE MOVING UP)
  466.             DELETE NEXT NL-PL BITS IN PATTERN FROM PTR FORWARD
  467.             (IF GOING FROM LEVEL 0 TO 2, DELETE 2 BITS IN PATTERN)
  468.  
  469.          ELSE (IF MOVING DOWN, AWAY)
  470.             INSERT PL-NL RANDOM BITS INTO PATTERN AT PTR POSITION
  471.             (IF GOING FROM LEVEL 3 TO 2, INSERT 1 BIT INTO PATTERN)
  472.  
  473.          PL = NL (UPDATE PL)
  474.          OUTPUT NEXT VALUE IN PATTERN
  475.  
  476.       ELSE
  477.          OUTPUT NEXT VALUE IN PATTERN
  478.  
  479.       ADVANCE PATTERN PTR (CIRCULAR PATTERN)
  480.       ADVANCE INPUT PTR
  481.             
  482.  
  483. (Redundancy exists to simplify readability.)
  484.  
  485. Assuming spaces translate to level 0, input like this (thanks, Dave 
  486. Thomas):
  487.  
  488.  
  489.    22222222222222222          11111111111111111111111
  490.    2222222222222222222        11111111111111111111111
  491.    22222222222222222222       11111111111111111111111
  492.    22222          22222                11111
  493.    22222          22222                11111
  494.    22222          22222                11111
  495.    22222          22222                11111
  496.    22222          22222                11111
  497.    22222          22222                11111
  498.    22222222222222222222                11111
  499.    2222222222222222222                 11111
  500.    22222222222222222                   11111
  501.                                                                     
  502.                                                                     
  503. Yields output like this:
  504.  
  505. Co6&`R(D(v"i`<$$Co6&`R(D(v"i`<$$Co6&`R(D(v"i`<$$Co6&`R(D(v"i`<$$Co6&`R(D
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ytVbWqd^]qi(IRW)ytVbWqd^]qi(IRW)ytVbWqd^]q
  520. `^Y-z8v=[gBX(Aqq`^Y-z8v=[gBX(Aqq`^Y-z8v=[gBX(Aqq`^Y-z8v=[gBX(Aqq`^Y-z8v=
  521.  
  522.  
  523. This uses 16 as the Max pattern size.  Notice on the third line of the 
  524. output (the first line with level changes), the pattern is "7Z ... &{:".
  525. When we go from level 0 to level 2, we lose two characters (i.e., ":.").
  526. When we go from level 2 back to level 0, we insert two new characters 
  527. (i.e., "05" after the "osw5").
  528.  
  529. Any questions?  Or better yet, what did I leave out??  I do hope this helps 
  530. someone!?!
  531.  
  532.  
  533. -----------------------------------------------------------------------
  534. ----- SIRDS PUBLICATIONS ----------------------------------------------
  535. -----------------------------------------------------------------------
  536.  
  537. Search library databases with these keywords: Stereogram, Autostereogram, 
  538. SIRDS (Single Image Random Dot Stereogram), RDS.
  539.  
  540. >From E.Thompson@ncl.ac.uk:
  541. An excellent source of information (sample RDS and source code)
  542. is contained in Andrew A.Kinsman - Random Dot Stereograms
  543. ISBN 0-9630142-1-8  $13.95 U.S.  Published by Kinsman Physics, 
  544. P.O. Box 22682, Rochester, N.Y. 14692-2682
  545.  
  546. See the following periodicals:
  547. Journal of Imaging Science and Technology, May/June 1992, Vol 36, #3.
  548.    Slinker & Burton
  549. D. G. Stork and C. Rocca.  "Software for generating auto-random-dot
  550.     stereograms", _Behavior_Research_Methods,_Instruments,_and_Computers_,
  551.     Vol. 21, No. 5, 1989, pp. 525-534.
  552.  
  553.  
  554. SEND MORE REFERENCES!
  555.  
  556.  
  557.  
  558. -----------------------------------------------------------------------
  559. ----- C CODE TO GENERATE TEXT STEREOGRAMS -----------------------------
  560. -----------------------------------------------------------------------
  561.  
  562. Also from Dave Thomas:
  563.  
  564. Now here's a hack of a hack I found on the net.  Basically it generates
  565. stereograms from ascii diagrams.  Here's the program first:
  566.  
  567. #define DEPTH0  16
  568. #define COLS    79
  569.  
  570. #include <stdio.h>
  571.  
  572. main()
  573.    {
  574.    long now;
  575.    int col;
  576.    char m[COLS+1],s[COLS+1];
  577.    int i,e,c;
  578.  
  579.    /* seed random number generator */
  580.    time (&now);
  581.    srand (now);
  582.  
  583.    /* print fusion X's */
  584.    for (col = 0; COLS - col >= DEPTH0; col += DEPTH0)
  585.       {
  586.       for (i = 0; i < DEPTH0-1; ++i)
  587.          putchar (' ');
  588.       putchar ('X');
  589.       }
  590.    putchar ('\n');
  591.  
  592.    /* process input image */
  593.    while (memset(m,'\0',COLS+1),fgets (m, COLS+1, stdin))
  594.       {
  595.       e = 0;
  596.       s[COLS] = 0;
  597.       for(i=0; i<COLS; )
  598.          {
  599.          e = 0;
  600.          while (i >= DEPTH0 && i < COLS && 
  601.             (c = m[i - DEPTH0]) >= '0' && c <= '9')
  602.             {
  603.             e = 1;
  604.             s[i] = s[i-DEPTH0+c-'0'];
  605.             ++i;
  606.             }
  607.          s[i++] = (e || i < DEPTH0) ? randasc() : s[i-DEPTH0];
  608.          }
  609.       puts (s);
  610.       }
  611. }
  612.  
  613. randasc()
  614. {
  615.    /* large set of random characters */
  616.    return ('!'+rand()%92);
  617.  
  618.    /* lowercase random letters */
  619.    /* return ('a'+rand()%26); */
  620. }
  621.  
  622.  
  623. Try passing it this file as the standard input:
  624.                                 
  625.            22222222222222222           11111111111111111111111
  626.            2222222222222222222         11111111111111111111111
  627.            22222222222222222222        11111111111111111111111
  628.            22222          22222                 11111
  629.            22222          22222                 11111
  630.            22222          22222                 11111
  631.            22222          22222                 11111
  632.            22222          22222                 11111
  633.            22222          22222                 11111
  634.            22222222222222222222                 11111
  635.            2222222222222222222                  11111
  636.            22222222222222222                    11111
  637.                                                                         
  638.                                                                         
  639. You'll get output like this:
  640.  
  641.                X               X               X              X
  642. "i`<$$Co6&`R(D(v"i`<$$Co6&`R(D(v"i`<$$Co6&`R(D(v"i`<$$Co6&`R(D(v"i`<$$Co6&`R(D
  643. dZ<$wamwBy&>`,QFdZ<$wamwBy&>`,QFdZ<$wamwBy&>`,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)ytVbWqd^]qi(IRW)ytVbWqd^]qi(IRW)ytVbWqd^]qi(IRW)ytVbWqd^]qi(IRW)ytVbWqd^]q
  657. BX(Aqq`^Y-z8v=[gBX(Aqq`^Y-z8v=[gBX(Aqq`^Y-z8v=[gBX(Aqq`^Y-z8v=[gBX(Aqq`^Y-z8v=
  658.  
  659.  
  660.  
  661. -----------------------------------------------------------------------
  662. ----- HOPE FOR THE HOPELESS :-) ---------------------------------------
  663. -----------------------------------------------------------------------
  664.  
  665. From: wchaga@vela.acs.oakland.edu (William C. Haga)
  666.  
  667. Being one who has used wide-eyed vision on chain link fences ever
  668. since I was a kid, I was able to see the images in SIRDS right
  669. away. But I've had difficulty explaining the technique to friends. 
  670. Today I had the latest Games magazine with me at my parents house. 
  671. Games is running another contest using SIRDS, so there are three in 
  672. the latest issue. This time I thought of the reflection idea. So I 
  673. opened mom's china cabinet, put the magazine against the glass in 
  674. the door, and told mom to keep looking at her own reflection in the 
  675. glass until the image appeared.
  676.  
  677. It took less than thirty seconds.
  678.  
  679. When she saw the 3d train engines, I was subjected to a squeal of
  680. delight that I hadn't heard from her for a long time. "EEK! IT'S
  681. COMING OUT AT ME! IS THIS EVER NEAT!".  Dad tried for about a minute
  682. but gave up.
  683.  
  684. About an hour later, mom and I heard a shout. We went to
  685. the dining area, and there was dad with the magazine against the
  686. glass in the door. "Isn't that just the most amazing thing!", said he.
  687.  
  688. Later they were making jokes about teaching old dogs new tricks.
  689.  
  690.  
  691. -----------------------------------------------------------------------
  692. ----- COMMERCIAL SIRDS Posters ----------------------------------------
  693. -----------------------------------------------------------------------
  694.  
  695. For those who do not have a local SIRDS distributor (i.e., the poster
  696. cart at the mall), here is one company you may be able to order from.
  697. The following posters are all certifiably cool with lots of great details,
  698. and come in nice colors.  They are (I believe) designed by NVision, or 
  699. something like that, and distributed here by Axis Corp.
  700.  
  701. Posters:
  702. $25 Dinosaurs
  703. $25 Discovery (Space shuttle and planet)
  704. $25 Lady Liberty (U.S. Statue of Liberty)
  705. $25 B-2 Stealth Bomber
  706. $25 F-117 Bomber
  707. $25 Nature's Majesty (Eagle with fish in talons, pine trees in bkgrd)
  708. $30 Calypso Reef (Ocean Scene--new design, more detail)
  709. Many more now, including small, $15 posters.
  710.  
  711. Axis Corp.
  712. 1732 S. 790 W.
  713. Salt Lake City, UT 84104 USA
  714. (801)977-8816
  715.  
  716. Include US$5 for shipping and a poster tube.  (The guy quoted me that price 
  717. for shipping to Australia.)  Or, you can pay US$17 for a tube in a box.  
  718. Although they haven't had any problems shipping in the poster tubes, they 
  719. only guarantee safe delivery in a well-packed box.
  720.  
  721. And, by no means am I associated with these guys at all, except I spend a
  722. lot of time enjoying their posters!  (i.e., this is not an ad, but a 
  723. response to a request for SIRDS access.)
  724.  
  725.  
  726. ALSO:
  727.  
  728. Infix Technologies
  729. PO Box 381
  730. Orem, UT 84057-0381
  731. (801) 221-9233
  732. contact: John M. Olsen, jolsen@nyx.cs.du.edu
  733.  
  734. Shipping now:
  735. 18x24 Earth (mercator projection of the Earth's altitudes)
  736. 18x24 Salt Lake LDS Temple Centennial
  737. 18x24 Beethoven (300 DPI!  Very smooth.)
  738.  
  739. (others are coming soon, too.)
  740.  
  741. Retail price for the 18x24 inch prints is $20 plus $3 s/h.  Utah residents
  742. add 6.25% sales tax.  Wholesale and distributor discounts are available.
  743. Quotes for custom work are also available.  Cost and minimum order varies, 
  744. based on content.
  745.  
  746.  
  747.  
  748.